<?php

namespace App\Console;

use App\Console\Commands\WorkermanCommand;
use App\Models\Admin;
use App\Models\ChatGroup;
use App\Models\ChatGroupMessages;
use App\Models\ChatUser;
use App\Models\User;
use FreeAbrams\FuncTools\AccessToken\Token;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        //
        WorkermanCommand::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        // $schedule->command('inspire')->hourly();
    	$chatUser = 'MdNZBGaaSzHSU+GA07uCRiq8CRzAUocHAw5RaluhM52ptmI5XPgW4EkGPaeAqm0nYzsZ5EbfirLqX7V5EWDlGnpPf+JcwBjR6IHJLuY9JyOSv0KzHs0loLg9MiFlPF37+Y6bw2DeJV48ldy5v1/3ZTtk36Tak6V0XRmf2OlIRr9mdcpLyyhdxM4b98jCyeHoCPe0s0+3N/0p3eanHyOewTjSizLnQ6xOQs8ldN2a/jqrsBEOKAICPWka50PHFYoNqZE7OSdJuipTx4Hu6htrww8NhwhPhvl2f9t8TCyv88sUGuU0urNYtOwDPqaYA8tRyKZjkf7aMc0GyBh82ie9dQ==';
    	$key = config('api');
        $token = new Token($key['publicKey'], $key['signKey']);
    }

    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');

        require base_path('routes/console.php');
    }
}
